package com.ruoyi.system.mapper.app;

import com.ruoyi.system.domain.app.Card;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CardMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Card record);

    int insertSelective(Card record);

    Card selectByPrimaryKey(Long id);

    Card selectByNum(String cardNum);

    List<Card> cardList(Card card);

    List<Card> UserCardList(Long userId);

    List<Long> selectCommunityIdByCardNo(String cardNum);

    int unBindByUserId(Long userId);

    int updateByPrimaryKeySelective(Card record);

    int updateByPrimaryKey(Card record);

    int unbindCard(Long cardId);

    int bindCard(@Param("cardId")Long cardId,@Param("userId")Long userId,@Param("userName")String userName);
}